package com.example.spring.multi.module.logic.controller.table;


import com.example.spring.multi.module.logic.bean.IotDeviceProtocol;
import com.example.spring.multi.module.logic.service.IotDeviceProtocolService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 设备协议表 前端控制器
 * </p>
 *
 * @author Surging
 * @since 2023-07-12
 */
@RestController
@RequestMapping("/iotDeviceProtocol")
public class IotDeviceProtocolController {

    @Autowired
    private IotDeviceProtocolService iotDeviceProtocolService;

    @GetMapping("/list")
    public List<IotDeviceProtocol> list() {
        return iotDeviceProtocolService.list();
    }
}
